#!/usr/bin/python
# Functions written by Tmas Poopdek

def factors(num):
	factorsreturn = [1]
	rangeforfactors = range(num + 1)
	rangeforfactors.remove(0)
	for n in rangeforfactors:
		check = float(num) / float(n)
		if check == int(check) and n != 0 and n != 1:
			factorsreturn.append(n)
	factorsreturn.sort()
	return factorsreturn
